package com.tgu.home_action.dao;

import com.tgu.home_action.pojo.Log;
import org.apache.ibatis.annotations.Insert;
import org.springframework.stereotype.Repository;


@Repository
public interface LogMapper {
    /**
     * 插入日志
     *
     * @param log：日志信息
     */
    @Insert("insert into logs (user_id,role,action_id,action_type,result,comment,ip,time)" +
            "values (#{userId},#{role},#{actionId},#{actionType},#{result},#{comment},#{ip},#{time})")
    void insertLog(Log log);
}
